﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ByrForumAPI.MetaData
{
    public class Board
    {
        //版面名称 
        [JsonProperty("name")]
        public string Name { get; internal set; }

        //版主列表，以空格分隔各个id
        [JsonProperty("manager")]
        public string Manager { get; internal set; }
     
        //版面描述
        [JsonProperty("description")]
        public string Description { get; internal set; }

        //版面所属类别
        [JsonProperty("class")]
        public string Class { get; internal set; }

        //版面所属分区号
        [JsonProperty("section")]
        public string Section { get; internal set; }

        //今日发文总数
        [JsonProperty("post_today_count")]
        public int PosyTodayCount { get; internal set; }

        //版面主题总数
        [JsonProperty("post_threads_count")]
        public int PostThreadsCount { get; internal set; }

        //版面文章总数
        [JsonProperty("post_all_count")]
        public int PostAllCount { get; internal set; }

        //版面是否只读
        [JsonProperty("is_read_only")]
        public bool IsReadOnly { get; internal set; }

        //版面是否不可回复
        [JsonProperty("is_no_reply")]
        public bool IsNoReply { get; internal set; }

        //版面书否允许附件
        [JsonProperty("allow_attachment")]
        public bool AllowAttachment  { get; internal set; }

        //版面是否允许匿名发文
        [JsonProperty("allow_anonymous")]
        public bool AllowAnonymous  { get; internal set; }

        //版面是否允许转信
        [JsonProperty("allow_outgo")]
        public bool AllowOutgo  { get; internal set; }

        //当前登陆用户是否有发文/回复权限 
        [JsonProperty("allow_post")]
        public bool AllowPost  { get; internal set; }

        //版面当前在线用户数
        [JsonProperty("user_online_count")]
        public int UserOnlineCount  { get; internal set; }

    }
}
